package com.xiaoshuidi.cloud.module.contract.controller.admin.contract.vo.company;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xiaoshuidi.cloud.framework.jackson.core.databind.LocalDateDeserializer;
import com.xiaoshuidi.cloud.framework.jackson.core.databind.LocalDateSerializer;
import com.xiaoshuidi.cloud.module.contract.util.date.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

/**
 * 接收退租房间条件
 */
@Data
public class CompanyContractRentOutRoomReqVO {

    @Schema(description = "签约房间")
    private Long companyContractId;

    @Schema(description = "实际退租日期")
    @JsonDeserialize(using = LocalDateDeserializer.class)
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd")
    private LocalDate actualRentOutDate;

}
